package com.gitee.wsl.prism4j

class TokenImpl(
    private val name: String,
    private val patterns: MutableList<Prism4j.Pattern>
) : Prism4j.Token {

    override fun name(): String {
        return name
    }

    override fun patterns(): MutableList<Prism4j.Pattern> {
        return patterns
    }

    override fun toString(): String {
        return ToString.toString(this)
    }


}
